package com.lpy.service;

import com.lpy.mapper.RoleMapper;
import com.lpy.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @author: LiuPengYu
 * @date 2024/11/21 16:25
 */
@Component
public class UserService {

    @Autowired
    private UserMapper userMapper;//代理对象 Mybatis
    @Autowired
    private RoleMapper roleMapper;//代理对象 Mybatis

    public void test(){
        System.out.println(userMapper.getUserName());
        System.out.println(roleMapper.getRoleName());
    }
}
